package com.itcast.springboot.waste_recovery.service;

import com.itcast.springboot.request.EvaluateReq;
import com.itcast.springboot.request.OrderManage;
import com.itcast.springboot.response.MyOrderRes;
import com.itcast.springboot.response.StaffOrderRes;
import com.itcast.springboot.waste_recovery.domain.Order;
import com.baomidou.mybatisplus.extension.service.IService;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 订单 服务类
 * </p>
 *
 * @author 小破烂
 * @since 2020-08-23
 */
public interface OrderService extends IService<Order> {
    /**
     * 我的订单
     */
    public List<MyOrderRes> getMyOrders(Integer userId, Integer orderStatus);

    /**
     * 评价
     */
    public Integer evaluate(Integer orderId, Integer orderServiceEvaluation, Integer orderAttitudeEvaluation);

    /**
     * 员工订单
     */
    public List<StaffOrderRes> getStaffOrder(Integer staffId, Integer orderStatus);

    /**
     * 接单
     */
    public Integer takeOrder(Integer orderId);

    /**
     * 查看评价
     */
    public Map<String, Integer> getEvaluate(Integer orderId);

    /**
     * 校验密码
     */
    public Integer verityPsw(Integer userId, String userPassword);

}
